﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HomePage.master" AutoEventWireup="true" CodeFile="SiteTraLoi.aspx.cs" Inherits="SiteTraLoi" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <div class="contact">
        <div class="contact_top">
            <p class="contact_date">
                <script type="text/javascript">
                    var mydate = new Date()
                    var year = mydate.getYear()
                    var minutes = mydate.getMinutes()
                    var hour = mydate.getHours()
                    if (year < 1000)
                        year += 1900
                    var day = mydate.getDay()
                    var month = mydate.getMonth()
                    var daym = mydate.getDate()
                    if (daym < 10)
                        daym = "0" + daym
                    var dayarray = new Array("Chủ nhật", "Thứ hai", "Thứ ba", "Thứ tư", "Thứ năm", "Thứ sáu", "Thứ bảy")
                    var montharray = new Array("01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12")
                    document.write("" + dayarray[day] + ", " + daym + "/" + montharray[month] + "/" + year + ", " + hour + ":" + minutes + " GMT+7")

                </script>
            </p>
            <div class="address_phone">
                <span class="contact_address">Địa chỉ: 220 Bình Tiên P4 Q6 TpHCM</span>
                <span class="contact_phone">0949793908</span>
            </div>
        </div>
        <div class="contact_mid">
            <div class="contact_mid_content">
                <div class="form_contact">
                    <ContentTemplate>
                        <asp:DataList ID="dlTraLoi" runat="server" RepeatColumns="1" RepeatDirection="Horizontal">
                            <ItemTemplate>
                            <ul class="listTraLoi">
                                <li class="liTraLoi">
                                <div class="NoiDungLienHe">
                                   <asp:HyperLink runat="server" ID="linkTieude" NavigateUrl='<%# "~/TraLoi/" + Eval("IdLienHe") + "_" + GetTieuDe(GetNoiDung(Eval("IdLienHe"))) + ".aspx" %>'
                                        EnableViewState="false"> 
                                        <%# formatString((GetNoiDung(Eval("IdLienHe"))),40) %>
                                    </asp:HyperLink>
                                </div>
                                <div class="NoiDungTraLoi">
                                    <%# formatString(Eval("TraLoi").ToString(), 350) %>
                                </div>
                                </li>
                                   </ul>
                            </ItemTemplate>
                        </asp:DataList>
                    </ContentTemplate>
                </div>
            </div>
            <!--End #contact_mid_content-->
        </div>
        <!--End #contact_mid-->
        <div class="contact_bottom">
        </div>
    </div>
    <!--End #content-->
</asp:Content>

